package com.gzcc.repository;

import com.gzcc.model.Admin;
import com.gzcc.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author: Mr.Zhong
 * @create: 2018-06-19 19:04
 * @description: 管理员数据操作
 **/
@Repository
public interface AdminRespository extends JpaRepository<Admin,Integer> {

    /**
     * 描述: 通过用户名查询用户
     *
     * @param name
     * @return Admin
     * @Author: Mr.Zhong
     * @Date: 2018/6/19
     */
    Admin findByName(String name);
}
